package com.cy.java.basic;

public class HelloWorld {
    public static void main(String[] args) {
        String a="java";
        String b="java";
        String c=new String("java");
        StringBuffer d = new StringBuffer("java");
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(a==b);
        System.out.println(a==c);
        //System.out.println(a==d);

        //System.out.println(c==d);
        System.out.println(d.equals(c));
        System.out.println(a.equals(b));
        System.out.println(a.equals(c));
        System.out.println(a.equals(d));
        System.out.println(c.equals(d));

        int[] x={1,2,3};
        System.out.println(x);
        char[] y={1,2,3};
        System.out.println(y);
        System.out.println(y+"==");


    }
}
